class Task(object):
    def __init__(self, name, lvol):
        self.name = name
        self.lvol = lvol

class LogicalVolume(object):
    def __init__(self, vg, lv, size):
        self.vg = vg
        self.lv = lv
        self.size = size

def create(vg, lv, size):
    lvol = LogicalVolume(vg, lv, size)
    task = Task("Create logical volume "+lv, vars(lvol))
    # return dict
    return vars(task)
